﻿using SharedContracts.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using TalentDesk.Contracts.Ef;
using TalentDesk.Contracts.Enums;

namespace TalentDesk.Contracts.ServiceContracts
{
    [ServiceContract(Namespace = TalentDesk.Contracts.DataContracts.Namespaces.ServiceContractNS)]
    public interface IAttachmentService
    {
        [OperationContract]
        [FaultContract(typeof(ExceptionInformation))]

        List<Attachment> Get();

        [OperationContract]
        [FaultContract(typeof(ExceptionInformation))]
        List<Attachment> GetAttachmentsByProjectId(int p_iProjectId);

        [OperationContract]
        [FaultContract(typeof(ExceptionInformation))]
        void SaveAttachmentList(List<Attachment> p_lAttachments);

        [OperationContract]
        [FaultContract(typeof(ExceptionInformation))]
        void SaveAttachment(Attachment p_oAttachments);


        [OperationContract]
        [FaultContract(typeof(ExceptionInformation))]
        Attachment GetAttachmentsByAttachmentId(int p_iAttachmentId);

    }
}
